import {defineStore} from 'pinia'
import {ref} from 'vue'

export const usePageStore = defineStore(
  'page',
  () => {
    const active = ref()
    const setActive = (val) => {
      active.value = val
    }
    const getActive = () => {
      return active.value
    }
    return {
      active,
      setActive,
      getActive,
    }
  }
)
